package com.xy.xymall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xy.common.utils.PageUtils;
import com.xy.xymall.member.entity.MemberEntity;
import com.xy.xymall.member.exception.MemberException;
import com.xy.xymall.member.vo.MemberLoginVo;
import com.xy.xymall.member.vo.MemberRegistVo;
import com.xy.xymall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author XY
 * @email 2447315136@qq.com
 * @date 2020-04-12 09:02:50
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo registVo);

    void checkEmailUnique(String email);

    void checkUserNameUnique(String userName) throws MemberException;

    void checkPhoneUnique(String phone) throws MemberException;

    MemberEntity login(MemberLoginVo loginVo);

    MemberEntity login(SocialUser socialUser) throws Exception;
}

